/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.activity.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ykht.proj.activity.entity.VActivity;
import com.ykht.proj.activity.vo.VActivityVo;

/**
 * 活动表
 *
 * @author csg
 * @date 2021-05-21 14:20:15
 */
public interface VActivityService extends IService<VActivity> {
	/**
	 * 新增活动表
	 * @param vActivityVo
	 */
    void addActivity(VActivityVo vActivityVo);

	/**
	 * 活动列表 分页查询
	 * @param page
	 * @param vActivityVo
	 * @return
	 */
	IPage<VActivityVo> getVActivityPage(Page page, VActivityVo vActivityVo);

	/**
	 * 通过id删除活动表
	 * @param id
	 */
	void deleteActivity(Long id);

	void sendMq(VActivity vActivity) throws Exception;

	/**
	 * 修改活动表
	 * @param vActivity
	 */
    void updateActivity(VActivity vActivity);

	/**
	 * 活动定时任务
	 */
	void activityExpireTask();
}
